#!/bin/bash
set -x

DEST=/mnt/jchimene/web/content
HOST=jec
ARCHIVE=/tmp/sked.zip

pushd ~/workspace/Sked/web/content
rm $ARCHIVE
zip $ARCHIVE . -r -x \*com.systasis.sked.SkedJUnit/* \*.svn/* \*WEB-INF/*
popd

mnt $HOST
rm -r $DEST/sked.save
mv $DEST/sked $DEST/sked.save
unzip -o $ARCHIVE -d $DEST
mnt -u $HOST

set +x
